-- GENERATED SPELL FOR [Draenei Tomb Guardian] --


function spell0_22285(pUnit, Event) --@Cosmetic - Chain Lightning (single),n/a--
pUnit:FullCastSpellOnTarget(37226,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22285', 0, 1)
end

function Sorts_22285(pUnit, Event)
local choix_sorts_22285 = math.random(0, 0)
if choix_sorts_22285 == 0 then
pUnit:RegisterEvent('spell0_22285', 1, 1)
end
end

function mob22285_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22285', math.random(1500, 3000), 1)
end

function mob22285_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22285_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22285_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22285, 1, 'mob22285_Action')
RegisterUnitEvent(22285, 2, 'mob22285_Leave')
RegisterUnitEvent(22285, 3, 'mob22285_Kill')
RegisterUnitEvent(22285, 4, 'mob22285_Die')
